import axios from '../../axios.js';

const Lessors = {
    // 获取信息
    getLessors: function (params) {
        return axios({
            url: '/lessors/getLessors',
            method: "get",
            params
        })
    },
    // 冻结账户
    frozenAccount: function (_id) {
        return axios({
            url: '/lessors/frozenAccount',
            method: 'post',
            data: { _id }
        })
    },
    // 解冻账户
    thawAccount: function (_id) {
        return axios({
            url: '/lessors/thawAccount',
            method: 'post',
            data: { _id }
        })
    }
}
export default Lessors;